package mytest.wd5;

import com.alibaba.fastjson.JSONObject;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.StringUtils;
import pojo.Cat;

import java.util.HashMap;
import java.util.Map;

public class Test_1 {
    public static void main(String[] args) {

        Map<String, String> dbs = new HashMap<>();
        dbs.put("easyinsight_ngn_ods", "t_ods_repayment_plan_metrics,t_ods_credit_line_change_record,t_ods_user_apply_record,t_ods_repayment_plan_fee_details,t_ods_repayment_plan_base_info,t_ods_main_order_base_info," +
                "t_ods_repayment_plan_remaining_amount_changes,t_ods_user_tags,t_ods_user_behavior_record,t_ods_main_order_fee_details,t_ods_main_order_metrics");
        for (String dbName : dbs.keySet()) {
            System.out.println(MapUtils.getString(dbs, dbName));
            String[] split = StringUtils.split(MapUtils.getString(dbs, dbName, ""), ",");
            for (String s : split) {
                if (StringUtils.isNotBlank(s)) {
                    System.out.println(s);
                }
            }
        }
    }
}
